package com.ruoyi.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 邀请记录对象 rnx_invite_log
 * 
 * @author ruoyi
 * @date 2022-05-06
 */
public class RnxInviteLog extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 手机 */
    @Excel(name = "手机")
    private String mobilePhone;

    /** 姓名 */
    @Excel(name = "姓名")
    private String fullName;

    /** 邮箱 */
    @Excel(name = "邮箱")
    private String email;

    /** 邀请时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "邀请时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date inviteTime;

    /** 邀请状态 1:待填写 2:已填写 3:已失效 */
    @Excel(name = "邀请状态 1:待填写 2:已填写 3:已失效")
    private Long state;

    /** 扩展字段 */
    @Excel(name = "扩展字段")
    private String ext;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setMobilePhone(String mobilePhone) 
    {
        this.mobilePhone = mobilePhone;
    }

    public String getMobilePhone() 
    {
        return mobilePhone;
    }
    public void setFullName(String fullName) 
    {
        this.fullName = fullName;
    }

    public String getFullName() 
    {
        return fullName;
    }
    public void setEmail(String email) 
    {
        this.email = email;
    }

    public String getEmail() 
    {
        return email;
    }
    public void setInviteTime(Date inviteTime) 
    {
        this.inviteTime = inviteTime;
    }

    public Date getInviteTime() 
    {
        return inviteTime;
    }
    public void setState(Long state) 
    {
        this.state = state;
    }

    public Long getState() 
    {
        return state;
    }
    public void setExt(String ext) 
    {
        this.ext = ext;
    }

    public String getExt() 
    {
        return ext;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("mobilePhone", getMobilePhone())
            .append("fullName", getFullName())
            .append("email", getEmail())
            .append("inviteTime", getInviteTime())
            .append("state", getState())
            .append("ext", getExt())
            .toString();
    }
}
